//
//  UserModal.h
//  WGFGlobalHouses
//
//  Created by waiguofang on 15/4/20.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum
{
    MobileValidata = 1, //1：已验证
    MobileNuValidata = 0//未验证，
}MobileType;

typedef enum
{
    UserTypeTrader = 3, //分销商
    UserTypeMiddleMan = 2,  //经纪人
    UserTypeCustomer =1   //顾客
}UserType;
@interface UserModal : NSObject<NSCopying>
//用户编码
@property (copy, nonatomic) NSString *userCode;
//登录帐号
@property (copy, nonatomic) NSString *account;
//手机号
@property (copy, nonatomic) NSString *mobile;
@property (assign, nonatomic) MobileType mobileType;
@property (assign, nonatomic)UserType userType;

//状态（冻结1，正常0）
@property (assign, nonatomic)  NSInteger status;
//用户id
@property (assign, nonatomic) NSInteger userId;



@property (copy, nonatomic) NSString *premiseIds;//（添加用户页面中，绑定楼盘的ID）
@property (copy, nonatomic) NSString *prmisedNames; //（添加用户页面中，绑定楼盘的名称）

@property (copy, nonatomic) NSString *editName;//（客户编辑页面中，修改后的姓名)
@property (strong, nonatomic) NSArray *editLockSiteArr;//编辑的时候绑定的楼盘

@property (nonatomic,assign)CGFloat keyboardHeight; //保存键盘的高度
@property (nonatomic,copy)NSString *premise;//房屋详情中的楼盘详情

@property (nonatomic,strong)UIImage *img;//保存个人中心中上传的头像


@property (nonatomic,strong)NSArray *advertisesArr;//广告图片


-(instancetype)initWithDic:(NSDictionary *)dic;
+(instancetype)userModelWithDic:(NSDictionary *)dic;
+ (instancetype)shareUserModel;
+ (instancetype)shareUserModel2;

+(NSInteger)getCustomerId;
+(NSString *)getuserCode;
+(NSInteger)getUserID;;

+(NSString*)getDetailId;


@end
